package com.autonomous_printer.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 打印机状态
 */
@Component
public class PrinterStatus {

    @Value(value = "1000")
    private int page;

    @Value(value = "100.0")
    private double ink;

    @Value(value = "true")
    private boolean able;

    public boolean isAble() {
        return able;
    }

    public void setAble(boolean able) {
        this.able = able;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public double getInk() {
        return ink;
    }

    public void setInk(double ink) {
        this.ink = ink;
    }
}
